package com.leidi.javacallspython.constant;

/**
 * 缓存的key 常量
 * 
 * @author dhjc
 */
public class CacheConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String HEADER = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀APP
     */
    public static final String TOKEN_APP_PREFIX = "App ";

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 权限缓存前缀 APP
     */
    public final static String LOGIN_APP_TOKEN_KEY = "login_app_tokens:";

    /**
     * tb缓存前缀
     */
    public final static String TB_TOKEN_KEY = "tb_token:";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 租户ID字段
     */
    public static final String DETAILS_TENANT_ID = "tenant_id";

    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";
    /**
     * tb授权信息字段
     */
    public static final String X_HEADER = "X-Authorization";

    /**
     * 极光绑定设备ID
     */
    public static final String REGISTRATION_ID = "registration_app_id:";
}
